<!doctype html>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script type="text/javascript">
    var g = function* () {
        try {
            var foo = yield console.log("alert");
            debugger;
            console.log(foo);
        } catch (e) {
            console.log(e);
        }
    };

    var gg = g();
    gg.next();




</script>
</body>
</html>